package day09API.stream;

import java.io.*;

/**
 * @author DBX
 * @date 2021/8/26 0026 - 19:21
 */
public class Test02 {
    public static void main(String[] args) throws Exception {
        FileInputStream fis = new FileInputStream("./TiMo.jpeg");
        BufferedInputStream bis = new BufferedInputStream(fis);
        FileOutputStream fos = new FileOutputStream("./File/TiMo2.jpeg");
        BufferedOutputStream bos = new BufferedOutputStream(fos);
        int d = 0;
        while ((d = bis.read())!=-1){
            bos.write(d);
        }
        System.out.println("执行完毕");
        bis.close();
        bos.close();

    }

}
